<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Ananas Library: Класс aDataField</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Создано системой Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Титульная&nbsp;страница</span></a></li>
      <li class="current"><a href="annotated.html"><span>Классы</span></a></li>
      <li><a href="files.html"><span>Файлы</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Классы</span></a></li>
      <li><a href="hierarchy.html"><span>Иерархия&nbsp;классов</span></a></li>
      <li><a href="functions.html"><span>Члены&nbsp;классов</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Класс aDataField</h1><!-- doxytag: class="aDataField" -->Класс определяет программный интерфейс для доступа к полям бизнес объектов Ананаса. Наследует QObject.  
<a href="#_details">Подробнее...</a>
<p>
<code>#include &lt;<a class="el" href="adatafield_8h-source.html">adatafield.h</a>&gt;</code>
<p>

<p>
<a href="classaDataField-members.html">Полный список членов класса</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Открытые слоты</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cf57c46fea60cc2491430df001ac69f5"></a><!-- doxytag: member="aDataField::fieldName" ref="cf57c46fea60cc2491430df001ac69f5" args="() const " -->
virtual QString&nbsp;</td><td class="memItemRight" valign="bottom"><b>fieldName</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b772375e43725a61fa64bfe2d3f27a11"></a><!-- doxytag: member="aDataField::ObjectType" ref="b772375e43725a61fa64bfe2d3f27a11" args="()" -->
virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><b>ObjectType</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QVariant&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataField.html#2d55bb3c7d73f5b4863f9bc2a5dd1aff">value</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataField.html#15c8f96d219b1d84e9065db4d4bbe8e0">setValue</a> (const QVariant &amp;value)</td></tr>

<tr><td colspan="2"><br><h2>Открытые члены</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataField.html#f0d491114985af095df9ab08c4faad39">aDataField</a> (QObject *parent, const QString &amp;fname=QString::null, const QString &amp;ftype=QString::null)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataField.html#df027ab5b9513b0b2638e751e5f7e465">aDataField</a> (const QString &amp;fname=QString::null, const QString &amp;ftype=QString::null)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="07328b5c2ad0780336c05e0b46c5b990"></a><!-- doxytag: member="aDataField::aDataField" ref="07328b5c2ad0780336c05e0b46c5b990" args="(const aDataField &amp;field)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>aDataField</b> (const <a class="el" href="classaDataField.html">aDataField</a> &amp;field)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataField.html#3aea3b4e4dbf1f1b156aa9dc6db42b51">~aDataField</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="77b5323ce90d514849d32446d6961fff"></a><!-- doxytag: member="aDataField::operator=" ref="77b5323ce90d514849d32446d6961fff" args="(const aDataField &amp;other)" -->
<a class="el" href="classaDataField.html">aDataField</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classaDataField.html">aDataField</a> &amp;other)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9d2d70bc24c4f1350a264138b3a20afd"></a><!-- doxytag: member="aDataField::operator==" ref="9d2d70bc24c4f1350a264138b3a20afd" args="(const aDataField &amp;other) const " -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="classaDataField.html">aDataField</a> &amp;other) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2b232c52f8bfad20125b16aecafc4c7d"></a><!-- doxytag: member="aDataField::operator!=" ref="2b232c52f8bfad20125b16aecafc4c7d" args="(const aDataField &amp;other) const " -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator!=</b> (const <a class="el" href="classaDataField.html">aDataField</a> &amp;other) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QVariant&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDataField.html#43aed362a10284b5f7056d9c9f373790">internalValue</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="50f29d66377fbb3a33dfe3039faa2637"></a><!-- doxytag: member="aDataField::setInternalValue" ref="50f29d66377fbb3a33dfe3039faa2637" args="(const QVariant &amp;value)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setInternalValue</b> (const QVariant &amp;value)</td></tr>

<tr><td colspan="2"><br><h2>Открытые атрибуты</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="63ecfa9de52edc1e04840aa0ceee4667"></a><!-- doxytag: member="aDataField::context" ref="63ecfa9de52edc1e04840aa0ceee4667" args="" -->
aCfgItem&nbsp;</td><td class="memItemRight" valign="bottom"><b>context</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d20f648582fb97fac89a5b8a9c6c7c23"></a><!-- doxytag: member="aDataField::id" ref="d20f648582fb97fac89a5b8a9c6c7c23" args="" -->
long&nbsp;</td><td class="memItemRight" valign="bottom"><b>id</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="82b0e33ea389478ca325912f12fe9e79"></a><!-- doxytag: member="aDataField::md" ref="82b0e33ea389478ca325912f12fe9e79" args="" -->
<a class="el" href="classaCfg.html">aCfg</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>md</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="98364c9c97ddb06c1c9fb5add3849da5"></a><!-- doxytag: member="aDataField::fSys" ref="98364c9c97ddb06c1c9fb5add3849da5" args="" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>fSys</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="abbb86a129aaf02b7169b0ee3c5b59fe"></a><!-- doxytag: member="aDataField::Width" ref="abbb86a129aaf02b7169b0ee3c5b59fe" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>Width</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="edcccda1aad7c3fdf0ee83efc859c86c"></a><!-- doxytag: member="aDataField::Dec" ref="edcccda1aad7c3fdf0ee83efc859c86c" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>Dec</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="326bf256e9ed6aae9feae5a5b02105cc"></a><!-- doxytag: member="aDataField::Name" ref="326bf256e9ed6aae9feae5a5b02105cc" args="" -->
QString&nbsp;</td><td class="memItemRight" valign="bottom"><b>Name</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="44d7bd47beea82bb578ccb5333519c9d"></a><!-- doxytag: member="aDataField::fType" ref="44d7bd47beea82bb578ccb5333519c9d" args="" -->
QString&nbsp;</td><td class="memItemRight" valign="bottom"><b>fType</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8b541f0842dcaf2167f7a9b7f464d9c1"></a><!-- doxytag: member="aDataField::aType" ref="8b541f0842dcaf2167f7a9b7f464d9c1" args="" -->
char&nbsp;</td><td class="memItemRight" valign="bottom"><b>aType</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="550fc4e9abdee897b06edaef24b6893e"></a><!-- doxytag: member="aDataField::Type" ref="550fc4e9abdee897b06edaef24b6893e" args="" -->
QVariant::Type&nbsp;</td><td class="memItemRight" valign="bottom"><b>Type</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="765bdeef49c4de3c913ba82a5605520e"></a><!-- doxytag: member="aDataField::oType" ref="765bdeef49c4de3c913ba82a5605520e" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>oType</b></td></tr>

</table>
<hr><a name="_details"></a><h2>Подробное описание</h2>
Класс определяет программный интерфейс для доступа к полям бизнес объектов Ананаса. Наследует QObject. 
<p>
Позволяет получить и задать значение поля любого типа. Предназначен для использования из Ананас-скрипта. <hr><h2>Конструктор(ы)</h2>
<a class="anchor" name="f0d491114985af095df9ab08c4faad39"></a><!-- doxytag: member="aDataField::aDataField" ref="f0d491114985af095df9ab08c4faad39" args="(QObject *parent, const QString &amp;fname=QString::null, const QString &amp;ftype=QString::null)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">aDataField::aDataField           </td>
          <td>(</td>
          <td class="paramtype">QObject *&nbsp;</td>
          <td class="paramname"> <em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em> = <code>QString::null</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>type</em> = <code>QString::null</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create Ananas database field contaner.<p>
Create Ananas field contaner. 
</div>
</div><p>
<a class="anchor" name="df027ab5b9513b0b2638e751e5f7e465"></a><!-- doxytag: member="aDataField::aDataField" ref="df027ab5b9513b0b2638e751e5f7e465" args="(const QString &amp;fname=QString::null, const QString &amp;ftype=QString::null)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">aDataField::aDataField           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em> = <code>QString::null</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>type</em> = <code>QString::null</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create Ananas field contaner. 
</div>
</div><p>
<a class="anchor" name="3aea3b4e4dbf1f1b156aa9dc6db42b51"></a><!-- doxytag: member="aDataField::~aDataField" ref="3aea3b4e4dbf1f1b156aa9dc6db42b51" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">aDataField::~aDataField           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destroy object. 
</div>
</div><p>
<hr><h2>Методы</h2>
<a class="anchor" name="43aed362a10284b5f7056d9c9f373790"></a><!-- doxytag: member="aDataField::internalValue" ref="43aed362a10284b5f7056d9c9f373790" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QVariant aDataField::internalValue           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return pointer to asociated sql field. 
</div>
</div><p>
<a class="anchor" name="2d55bb3c7d73f5b4863f9bc2a5dd1aff"></a><!-- doxytag: member="aDataField::value" ref="2d55bb3c7d73f5b4863f9bc2a5dd1aff" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QVariant aDataField::value           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Возвращает значение поля данных. 
</div>
</div><p>
<a class="anchor" name="15c8f96d219b1d84e9065db4d4bbe8e0"></a><!-- doxytag: member="aDataField::setValue" ref="15c8f96d219b1d84e9065db4d4bbe8e0" args="(const QVariant &amp;value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void aDataField::setValue           </td>
          <td>(</td>
          <td class="paramtype">const QVariant &amp;&nbsp;</td>
          <td class="paramname"> <em>value</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Устанавливает значение поля данных. 
</div>
</div><p>
<hr>Объявления и описания членов классов находятся в файлах:<ul>
<li><a class="el" href="adatafield_8h-source.html">adatafield.h</a><li>adatafield.cpp</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Документация по Ananas Library. Последние изменения: Sun Feb 1 21:47:15 2009. Создано системой&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
